package edu.usx.server.pojo;

import io.swagger.annotations.ApiModelProperty;

public class PageInfo {
    @ApiModelProperty(value = "当前页码")
    private Integer pn;
    @ApiModelProperty(value = "每页数量")
    private Integer ps;
    @ApiModelProperty(value = "总页数")
    private Integer totalPage;
    @Override
    public String toString() {
        return "Page{" +
                "  pn=" + pn +
                ", ps=" + ps +
                ", totalPage=" + totalPage +
                '}';
    }

    public PageInfo(){}
    public PageInfo(Integer pn, Integer ps, Integer totalPage) {
        this.pn = pn;
        this.ps = ps;
        this.totalPage = totalPage;
    }


    public Integer getPn() {
        return pn;
    }

    public void setPn(Integer pn) {
        this.pn = pn;
    }

    public Integer getPs() {
        return ps;
    }

    public void setPs(Integer ps) {
        this.ps = ps;
    }

    public Integer getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(Integer totalPage) {
        this.totalPage = totalPage;
    }
}
